<template lang="html">
  <swiper class="headerSwiper" :options="swiperOption">
    <!-- slides -->
    <swiper-slide v-for="item of list" :key="item.id">
      <img :src="item.imgUrl" alt="">
    </swiper-slide>
    <!-- Optional controls -->
    <div class="swiper-pagination"  slot="pagination"></div>
  </swiper>
</template>

<script>
export default {
  name: 'HomeSwiper',
  data  () {
    return {
      swiperOption: {
        pagination: {
          el: '.swiper-pagination'
        },
        loop: true
      },
      list: [{
        id: '0001',
        imgUrl: 'http://ms0.meituan.net/touch/img/download_banner.png'
      }, {
        id: '0002',
        imgUrl: 'http://ms0.meituan.net/touch/img/download_banner.png'
      }]
    }
  }
}
</script>

<style lang="stylus" scoped>
  .swiper-container >>> .swiper-pagination-bullet-active
    background: #06c1ae
  .headerSwiper
    padding: 0
    .swiper-slide img
      width: 100%
</style>
